package com.untilov.gb.utils;

import java.io.IOException;
import java.util.Properties;

public class AccountProperties {

    private static Properties props = new Properties();

    static {
        try {
            props.load(AccountProperties.class
                    .getResourceAsStream("/account.properties"));
        } catch (IOException e) {
            e.printStackTrace();
            throw new RuntimeException(
                    "Can not find account setting on classpath.");
        }
    }

    private AccountProperties() {
        super();
    }

    public static String getLogin() {
        return props.getProperty("login");
    }

    public static String getPassword() {
        return props.getProperty("password");
    }
}
